cmake_minimum_required(VERSION 3.10)
project(MyProgram)

# Set build directory for all files
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

include_directories(include)
file(GLOB SOURCES 
    "src/*.cpp"
    "src/characters/*.cpp"
    "src/locations/*.cpp"
    "src/GameControl/*.cpp"
    "src/characters/enemies/*.cpp"
    "src/items/Item.cpp" 
)

add_executable(play ${SOURCES})